find_package(Protobuf REQUIRED)

set(PROTO_FILES
    contacts.proto
    
)

add_library(contacts_proto ${PROTO_FILES})
target_link_libraries(contacts_proto PUBLIC protobuf::libprotobuf)

target_include_directories(contacts_proto PUBLIC
                                                    ${PROTOBUF_INCLUDE_DIRS} 
                                                    ${CMAKE_CURRENT_BINARY_DIR})

protobuf_generate(TARGET contacts_proto LANGUAGE cpp)
